package com.kuangstudy.zhuru;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * 当属性过多时，使用@Value的方式就不太好了！
 */
@Service
@Slf4j
public class AlipayService2 {

    @Autowired
    private AlipayProperties alipayProperties;

    public void test(){
        log.info("你的appid是:{},你的appname是:{},你的callback是:{},你的userid是:{}",
                alipayProperties.getAppid(),alipayProperties.getAppname()
                ,alipayProperties.getCallback(),alipayProperties.getUserid());
    }

}
